$('.loginout').on('click', function () {
  var isConfirm = confirm('您真的要退出吗?');
  if (isConfirm) {
    // alert('用户点击了确认按钮')
    $.ajax({
      url: '/admin/loginout',
      data: {
          username:false
      },
      success: (reslut) => {
          window.location.href = "login.html"
      }
  })
  }
});


$.ajax({
url: '/admin/webset',
success: function (reslut) {
 var res = reslut
  $('head').append(`<meta name="description" content="${res.description}"></meta>`)
  $('head').append(`<meta name="keywords" content="${res.keyword}"></meta>`)
  $('head').append(`<link rel="shortcut icon" href="${res.icon}" type="image/x-icon">`)
}
})